function takeOverMsg()
{
    var URL="/takeFlow.do?method=takeOverMsg&checkmsgstatus=DT&msgLsh=<%=msgLsh%>&resourceID=<%=resourceID%>";
    window.location = URL;
}

function takeToProcessMsg()
{
    document.getElementById("pickupsubmit").setEnabled(false);
    var URL="/takeFlow.do?method=takeToProcessMsg&checkmsgstatus=DT&msgLsh=<%=msgLsh%>&resourceID=<%=resourceID%>&typeCodeInt=<%=typeCodeInt%>";
    window.location = URL;
}

function workassign_Dept(direct)
{
    if(!direct)
    {
        var targetUrl = "/WfcUI/WfcUI_workassign_dept.jsp?isdeptmsg=<%=isdeptmsg%>&typeCodeInt=<%=typeCodeInt%>&workassigndirect="+direct;
        window.location = "/serviceLocator?action=checkFlowStatus&checkmsgstatus=DTDBYB&msgLsh=<%=msgLsh%>&&resourceID=<%=resourceID%>&targetUrl=" + targetUrl;
    }
    else
    {
        document.getElementById("workassigndeptDirect").setEnabled(false);
        var targetUrl = "/WfcCTR_NextStep?action=workAssignDept&isdeptmsg=<%=isdeptmsg%>&typeCodeInt=<%=typeCodeInt%>&workassigndirect="+direct+"&resourceID=<%=resourceID%>&msglsh=<%=msgLsh%>";
        window.location = "/serviceLocator?action=checkFlowStatus&from=DEDT&checkmsgstatus=DTDBYB&msgLsh=<%=msgLsh%>&&resourceID=<%=resourceID%>&targetUrl=" + targetUrl;
    }
}

function assignForward()
{
    var targetUrl = "/WfcUI/WfcUI_AssignForward.jsp?isdeptmsg=<%=isdeptmsg%>&typeCodeInt=<%=typeCodeInt%>";
    window.location = "/serviceLocator?action=checkFlowStatus&checkmsgstatus=DB&msgLsh=<%=msgLsh%>&resourceID=<%=resourceID%>&targetUrl=" + targetUrl;
}